<template>
	<view>
		<view id="wrap">
			<view id="inner">
				<view class="item" v-for="item in  mobileList" style="margin-left:90rpx;">
					{{item}}
				</view>

			</view>
		</view>

		<!-- <view id="wrap" style="margin-top: 30rpx;">
			<view id="inner">
				<view class="item" v-for="item in  mobileList">
					{{item}}
				</view>
			</view>
		</view> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				mobileList: [
					// '177***  1分钟前  领取成功',
					// '138***  1分钟前  领取成功',
					// '181***  1分钟前  领取成功',
					// '139***  1分钟前  领取成功',
					// '177***  1分钟前  领取成功',
					// '138***  1分钟前  领取成功',
					// '181***  1分钟前  领取成功',
					// '139***  1分钟前  领取成功',
					'177***  抢到了',
					'138***  抢到了',
					'181***  抢到了',
					'139***  抢到了',
					'177***  抢到了',
					'138***  抢到了',
					'181***  抢到了',
					'139***  抢到了',
				]
			};
		}
	}
</script>

<style lang="scss" scoped>
	#wrap {

		overflow: hidden;
		position: relative;
		/* width: 800rpx; */
		height: 58rpx;
		white-space: nowrap;

	}

	#inner {
		position: absolute;
		animation: slide 5s linear infinite;
	}

	.item {
		display: inline-block;
		text-align: center;
		box-sizing: border-box;
		margin-left: 30rpx;

		width: 248rpx;
		height: 54rpx;
		line-height: 54rpx;
		background: #7BB2FF;
		border-radius: 27rpx;

		font-family: PingFang SC;
		font-weight: 500;
		font-size: 24rpx;
		color: #ffffff;

	}


	@keyframes slide {
		0% {
			transform: translateX(0);
		}

		100% {
			transform: translateX(-25%);
		}
	}
</style>